package com.chixing.day09_innerclass.orderclass;

public class PersonalOrder extends Order {
    public PersonalOrder(){

    }

    public PersonalOrder(String orderName, String orderId, int protectNum, double orderPrice, String orderDate) {
        super(orderName, orderId, protectNum, orderPrice, orderDate);
    }

    @Override
    public Order clone() {
        PersonalOrder p1=new PersonalOrder()  ;
        p1.setOrderName(this.getOrderName());
        p1.setOrderId(this.getOrderId());
        p1.setOrderPrice(this.getOrderPrice());
        p1.setOrderDate(this.getOrderDate());
        return super.clone();
    }
}
